package com.ruoyi.omsa.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.omsampuser.domain.OmSampuser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章管理对象 om_sa
 * 
 * @author ruoyi
 * @date 2025-02-21
 */
public class OmSa extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章编号 */
    private Long saId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String saName;

    /** 文章副标题 */
    private String saSubname;

    /** 文章富文本 */
    @Excel(name = "文章富文本")
    private String saText;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private Integer saTop;

    /** 置顶排序 */
    @Excel(name = "置顶排序")
    private Integer saTopsort;

    /** 普通排序 */
    private Integer saNsort;
    @Excel(name = "图片路径")
    private String saImage;

    public String getSaImage() {
        return saImage;
    }

    public void setSaImage(String saImage) {
        this.saImage = saImage;
    }




    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saCreatetime;

    /** 更新时间 */
    private Date saUpdatetime;

    //

    public OmSampuser getOmSampuser() {
        return omSampuser;
    }

    public void setOmSampuser(OmSampuser omSampuser) {
        this.omSampuser = omSampuser;
    }

    private OmSampuser omSampuser;


    public void setSaId(Long saId) 
    {
        this.saId = saId;
    }

    public Long getSaId() 
    {
        return saId;
    }
    public void setSaName(String saName) 
    {
        this.saName = saName;
    }

    public String getSaName() 
    {
        return saName;
    }
    public void setSaSubname(String saSubname) 
    {
        this.saSubname = saSubname;
    }

    public String getSaSubname() 
    {
        return saSubname;
    }
    public void setSaText(String saText) 
    {
        this.saText = saText;
    }

    public String getSaText() 
    {
        return saText;
    }
    public void setSaTop(Integer saTop) 
    {
        this.saTop = saTop;
    }

    public Integer getSaTop() 
    {
        return saTop;
    }
    public void setSaTopsort(Integer saTopsort) 
    {
        this.saTopsort = saTopsort;
    }

    public Integer getSaTopsort() 
    {
        return saTopsort;
    }
    public void setSaNsort(Integer saNsort) 
    {
        this.saNsort = saNsort;
    }

    public Integer getSaNsort() 
    {
        return saNsort;
    }
    public void setSaCreatetime(Date saCreatetime) 
    {
        this.saCreatetime = saCreatetime;
    }

    public Date getSaCreatetime() 
    {
        return saCreatetime;
    }
    public void setSaUpdatetime(Date saUpdatetime) 
    {
        this.saUpdatetime = saUpdatetime;
    }

    public Date getSaUpdatetime() 
    {
        return saUpdatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("saId", getSaId())
            .append("saName", getSaName())
            .append("saSubname", getSaSubname())
            .append("saText", getSaText())
            .append("saTop", getSaTop())
            .append("saTopsort", getSaTopsort())
            .append("saNsort", getSaNsort())
            .append("saCreatetime", getSaCreatetime())
            .append("saUpdatetime", getSaUpdatetime())
            .toString();
    }
}
